package com.ruoyi.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.project.domain.entity.ProjectPay;
import com.ruoyi.project.domain.entity.ProjectPhase;
import com.ruoyi.project.domain.query.ProjectPayQuery;
import com.ruoyi.project.domain.query.ProjectPhaseQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IProjectPhaseService extends IService<ProjectPhase> {

    //分页
    TableDataInfo getPage(ProjectPhaseQuery query);

    //新增
    Boolean addInfo(ProjectPhase project);

    Boolean addSaleInfo(ProjectPhase project);

    Boolean updateInfo(ProjectPhase project);

    //删除

    Boolean deleteInfo(String id);

    //获取详情

    ProjectPhase getInfoById(String id);

    List<ProjectPhase> getList(ProjectPhaseQuery query);

    ProjectPhase getStatus(ProjectPhaseQuery query);

    Map<String, Object> getStepList(ProjectPhaseQuery query);

    boolean rollBackPhase(ProjectPhase projectPhase);

    boolean projectCompelete(ProjectPhase projectPhase);


    List<String> selectDistinctProjectNoByPhaseId(String phaseId);


}
